﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataType;
using Google.GData.Client;

namespace LocalView
{
    public abstract class ICMSLocalView
    {
        public delegate void VoidDelegate();
        public VoidDelegate m_startProgress;
        public VoidDelegate m_stopProgress;
        public Credentials m_Cred;
        public enum Permission { reader, writer };
        public enum CollisionWinner { local, server };
        public DocumentInfo m_DocInfo;

        public virtual event EventHandler<SiteInfo> Login;
        public virtual event EventHandler<AtomFeedWrapper> GetContentFeed;
        public virtual event EventHandler<StringWrapper> GetFullTextContent;
        public virtual event EventHandler<PageInfo> UpdatePageContent;

        abstract public void DoLogin(SiteInfo cred);
        abstract public void DoGetContentFeed(AtomFeedWrapper feed);
        abstract public void DoGetFullTextContent(StringWrapper content);
        abstract public void DoUpdatePageContent(PageInfo page); 
    }
}
